package com.quantum.lang
{

	/**
	 * http://scottbilas.com/blog/ultimate-as3-fake-enums/
	 */
	public class EnumConstants
	{
		public var byIndex:Array;
		public var byName:Object={};

		public function EnumConstants(_byIndex:Array)
		{
			byIndex=_byIndex;

			for (var i:int=0; i < byIndex.length; ++i)
			{
				var enumConstant:Enum=byIndex[i];
				byName[enumConstant.name.toLowerCase()]=enumConstant;
			}
		}


	}

}